//
//  VerifyCodeRequest.swift
//  Nahuo
//
//  Created by zang qilong on 2017/5/13.
//  Copyright © 2017年 zang qilong. All rights reserved.
//

import UIKit
import YTKNetwork

class VerifyCodeRequest: YTKRequest {
    
    let mobile:String
    let code:String
    
    init(mobile:String, code:String) {
        self.mobile = mobile
        self.code = code
        
    }
    
    override func requestUrl() -> String {
        return "/user/login-via-code"
    }
    
    override func requestArgument() -> Any? {
        return ["mobile": self.mobile, "code": self.code]
        
    }
    
    override func requestMethod() -> YTKRequestMethod {
        return .POST
    }
    
    override func requestHeaderFieldValueDictionary() -> [String : String]? {
        
        return NaHuoHttpUtil.sharedInstance.generateVerifyMobileHeader()
    }


}
